<template>
    <Table  border :columns="columns2" :data="data4"></Table>
</template>
<script>
    export default {
        data () {
            return {
                columns2: [
                    {
                        title: 'id',
                        key: 'id',
                        width: 80,
                        fixed: 'left'
                    },
                    {
                        title: '订单编号',
                        key: 'order_no',
                        width: 200
                    },
                    {
                        title: '称呼',
                        key: '',
                        width: 100,
                    },
                    {
                        title: '手机',
                        key: '',
                        width: 100,
                    },
                    {
                        title: '地址',
                        key: '',
                        width: 100,
                    },
                    {
                        title: '商品',
                        key: '',
                        // width:
                    },
                    {
                        title: '总价',
                        key: 'zip',
                        width: 100
                    },
                    {
                        title: '配送员',
                        key: 'zip',
                        width: 100
                    },
                    {
                        title: '日期',
                        key: '',
                        width: 200,
                    },
                    // {
                    //     title: 'Action',
                    //     key: 'action',
                    //     // fixed: 'right',
                    //     width: 120,
                    //     render: (h, params) => {
                    //         return h('div', [
                    //             h('Button', {
                    //                 props: {
                    //                     type: 'text',
                    //                     size: 'small'
                    //                 }
                    //             }, 'View'),
                    //             h('Button', {
                    //                 props: {
                    //                     type: 'text',
                    //                     size: 'small'
                    //                 }
                    //             }, 'Edit')
                    //         ]);
                    //     }
                    // }
                ],
                data4: [
                    {
                        name: 'John Brown',
                        age: 18,
                        address: 'New York No. 1 Lake Park',
                        province: 'America',
                        city: 'New York',
                        zip: 100000
                    },
                    {
                        name: 'Jim Green',
                        age: 24,
                        address: 'Washington, D.C. No. 1 Lake Park',
                        province: 'America',
                        city: 'Washington, D.C.',
                        zip: 100000
                    },
                    {
                        name: 'Joe Black',
                        age: 30,
                        address: 'Sydney No. 1 Lake Park',
                        province: 'Australian',
                        city: 'Sydney',
                        zip: 100000
                    },
                    {
                        name: 'Jon Snow',
                        age: 26,
                        address: 'Ottawa No. 2 Lake Park',
                        province: 'Canada',
                        city: 'Ottawa',
                        zip: 100000
                    },
                    {
                        name: 'John Brown',
                        age: 18,
                        address: 'New York No. 1 Lake Park',
                        province: 'America',
                        city: 'New York',
                        zip: 100000
                    },
                    {
                        name: 'Jim Green',
                        age: 24,
                        address: 'Washington, D.C. No. 1 Lake Park',
                        province: 'America',
                        city: 'Washington, D.C.',
                        zip: 100000
                    },
                    {
                        name: 'Joe Black',
                        age: 30,
                        address: 'Sydney No. 1 Lake Park',
                        province: 'Australian',
                        city: 'Sydney',
                        zip: 100000
                    },
                    {
                        name: 'Jon Snow',
                        age: 26,
                        address: 'Ottawa No. 2 Lake Park',
                        province: 'Canada',
                        city: 'Ottawa',
                        zip: 100000
                    }
                ]
            }
        }
    }
</script>